package com.wlyuan.open.dto.api.order;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.RequiredArgsConstructor;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotBlank;
import java.io.Serializable;

/**
 * @author lijing
 * @description
 */
@Data
@RequiredArgsConstructor
public class OpenApiGoodsTypeCreationDTO implements Serializable {
    private static final long serialVersionUID = -6327099588879671766L;

    @NotBlank(message = "类型名称不能为空")
    @Length(max = 30, message = "类型名称最多可输入30个字符")
    @ApiModelProperty(value = "类型名称", required = true)
    private String name;

    @Length(max = 100, message = "备注最多可输入100个字符")
    @ApiModelProperty(value = "备注", required = true)
    private String remarks;

    @ApiModelProperty(value = "租户id", hidden = true)
    private Long tenantId;

    @ApiModelProperty(value = "用户id", hidden = true)
    private Long userId;
}
